package com.linkvin.ec.hcs.dao.model.mdm;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 仓库库位表
 * </p>
 *
 * @author qichao
 * @since 2017-12-23
 */
@TableName("mdm_warehouse_location")
public class WarehouseLocation extends Model<WarehouseLocation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 所属仓库
     */
	@TableField("w_id")
	private Integer wId;
    /**
     * 所属库区
     */
	@TableField("zone_name")
	private String zoneName;
    /**
     * 库位编码
     */
	private String code;
    /**
     * 库位名称
     */
	private String name;
    /**
     * 排
     */
	private Integer row;
    /**
     * 列
     */
	private Integer column;
    /**
     * 层
     */
	private Integer level;
    /**
     * 长
     */
	private BigDecimal length;
    /**
     * 宽
     */
	private BigDecimal width;
    /**
     * 库位类型 10-正常, 20-备用
     */
	@TableField("loc_type")
	private String locType;
    /**
     * 启用或者禁用：1 启用; 0 禁用;
     */
	@TableField("is_enable")
	private Integer isEnable;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_update")
	private Date gmtUpdate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getwId() {
		return wId;
	}

	public void setwId(Integer wId) {
		this.wId = wId;
	}

	public String getZoneName() {
		return zoneName;
	}

	public void setZoneName(String zoneName) {
		this.zoneName = zoneName;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getRow() {
		return row;
	}

	public void setRow(Integer row) {
		this.row = row;
	}

	public Integer getColumn() {
		return column;
	}

	public void setColumn(Integer column) {
		this.column = column;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public BigDecimal getLength() {
		return length;
	}

	public void setLength(BigDecimal length) {
		this.length = length;
	}

	public BigDecimal getWidth() {
		return width;
	}

	public void setWidth(BigDecimal width) {
		this.width = width;
	}

	public String getLocType() {
		return locType;
	}

	public void setLocType(String locType) {
		this.locType = locType;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtUpdate() {
		return gmtUpdate;
	}

	public void setGmtUpdate(Date gmtUpdate) {
		this.gmtUpdate = gmtUpdate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WarehouseLocation{" +
			", id=" + id +
			", wId=" + wId +
			", zoneName=" + zoneName +
			", code=" + code +
			", name=" + name +
			", row=" + row +
			", column=" + column +
			", level=" + level +
			", length=" + length +
			", width=" + width +
			", locType=" + locType +
			", isEnable=" + isEnable +
			", gmtCreate=" + gmtCreate +
			", gmtUpdate=" + gmtUpdate +
			"}";
	}
}
